class VideoModel {
  int id;
  String title;
  String subtitle;
  String playTimes;
  String likeTimes;
  String commentTimes;
  String videoUrl;
  String posterUrl;
  String createTime;
  String updateTime;

  VideoModel(
      {this.id,
        this.title,
        this.subtitle,
        this.playTimes,
        this.likeTimes,
        this.commentTimes,
        this.videoUrl,
        this.posterUrl,
        this.createTime,
        this.updateTime});

  VideoModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    subtitle = json['subtitle'];
    playTimes = json['playTimes'];
    likeTimes = json['likeTimes'];
    commentTimes = json['commentTimes'];
    videoUrl = json['videoUrl'];
    posterUrl = json['posterUrl'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['subtitle'] = this.subtitle;
    data['playTimes'] = this.playTimes;
    data['likeTimes'] = this.likeTimes;
    data['commentTimes'] = this.commentTimes;
    data['videoUrl'] = this.videoUrl;
    data['posterUrl'] = this.posterUrl;
    data['createTime'] = this.createTime;
    data['updateTime'] = this.updateTime;
    return data;
  }
}